﻿from pycad.system import *
from pycad.runtime import *

@command()
def mydict():
    with dbtrans() as tr:
        tr.setxrecord([[1000, 'abc']], 'NFox.Cad')
        print '\n在命名字典中设置了值为%s的扩展数据' % tr.getxrecord('NFox.Cad')

@command()
def mylayer():
    with dbtrans() as tr:
        tr.addlayer('1')